package jz.utils.report.po;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class Test {

	public static void main(String[] args) {
		ReportPO rpo = new ReportPO();
		List<Amount> c1 = new ArrayList<Amount>();
		List<Amount> c2 = new ArrayList<Amount>();
		List<Quality> c3 = new ArrayList<Quality>();
		for(int i=0;i<5;i++){
			Amount po = new Amount();
			po.setName("d1"+i);
			po.setValue("[784,77,18,0,0]");
			po.setLastValue("[784,77,18,0,0]");
			c1.add(po);
		}
		for(int i=0;i<5;i++){
			Amount po = new Amount();
			po.setName("d1"+i);
			po.setValue("[1053,627,65,17,50]");
			po.setLastValue("[1053,627,65,17,50]");
			c2.add(po);
		}
		for(int i=0;i<4;i++){
			Quality po = new Quality();
			po.setName("lose_case"+i);
			po.setIn_rate("1.0"+i);
			c3.add(po);
		}
		rpo.setC1(c1);
		rpo.setC2(c2);
		rpo.setC3(c3);
		String json = JSON.toJSONString(rpo);
		System.out.println(json);
	}
}
